package test

import (
	"fmt"

	"smartconn.cc/cubestruct/App/rpchandle"
	"smartconn.cc/tosone/logstash"
)

var cnt int64

// WifiOnTest define
func WifiOnTest() {
	logstash.Info(fmt.Sprintf("%v................................", cnt))
	logstash.Info("APP action:Wifi is On")
	cnt++
}

// WifiOffTest define
func WifiOffTest() {
	logstash.Info(fmt.Sprintf("%v................................", cnt))
	logstash.Info("APP action:Wifi is Off")
	cnt++
}

// WifiStatusScribe define
func WifiStatusScribe() {
	rpchandle.WifiOnEventSubscribe(WifiOnTest)
	rpchandle.WifiOffEventSubscribe(WifiOffTest)
}
